﻿using System;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Quantum.SignalR;

namespace TestSignalRServer
{
    public class AuthorizedReplier : AbstractAuthenticatedReplier
    {
        private readonly ILoggerFactory _loggerFactory;
        private readonly IConfiguration _configuration;

        public AuthorizedReplier(ILoggerFactory loggerFactory, IConfiguration configuration)
        {
            _loggerFactory = loggerFactory;
            _configuration = configuration;
        }

        public override void Send(string incomingMessage)
        {
            base.Send("AuthorizedReplier say:" + DateTime.Now);
        }

        public override bool Authenticate(string incomingMessage)
        {
            return true;
        }
    }
}
